<%@ include file="connect.jsp" %>

<%
    String id = request.getParameter("id");
    String name = request.getParameter("name");
    stat.executeUpdate("Delete from learn where learnID = '" + id + "' ");

    conn.close();

    response.sendRedirect("learn.jsp?respon=Success to delete material " + name);
%>